<template>
  <div class="navbar-container">
    <div class="navbar-item" @click="$router.push('/videorecipes')">
      <div class="pic">
        <img src="@/assets/home/home_video2.png" />
      </div>
      <span>视频菜谱</span>
    </div>
    <div class="navbar-item" @click="$router.push('/latestrecipes')">
      <div class="pic">
        <img src="@/assets/home/home_new_r2.png" />
      </div>
      <span>最新菜谱</span>
    </div>
    <div class="navbar-item" @click="$router.push('/popularrecipes')">
      <div class="pic">
        <img src="@/assets/home/home_hot_r2.png" />
      </div>
      <span>热门菜谱</span>
    </div>
    <div class="navbar-item" @click="$router.push('/homerecipes')">
      <div class="pic">
        <img src="@/assets/home/home_o2.png" />
      </div>
      <span>家常菜谱</span>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less" scoped>
.navbar-container {
  height: 80px;
  padding-top: 10px;
  width: 100%;
  display: flex;
  box-sizing: content-box;
  background-color: white;

  .navbar-item {
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    flex: 1;

    .pic {
      height: 55px;
      width: auto;

      img {
        width: auto;
        height: 100%;
      }
    }

    span {
      margin-top: 5px;
      font-size: 12px;
      font-weight: 700;
      line-height: 14px;
      color: #777;
    }
  }
}
</style>
